package com.mxfcode.bbs_common.bean;

import lombok.*;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;
import java.util.Date;

/**
 * @类名 TSUser
 * @描述 TODO
 * @作者 mxf
 * @创建日期 2021/1/25 14:24
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class TSUser {

    //主键
    private String id;
    //登录账号
    private String userName;
    //登录密码
    private String password;
    //用户昵称
    private String realName;
    //手机号
    private String mobileNum;
    @Email(message = "QQ电子邮箱")
    private String email;
    //登录时间
    private Date loginTime;
    //上次登录时间
    private Date lastLoginTime;
    //头像路径
    private String avatarUrl;
    @Min(value = 0, message = "在线时长，单位为秒")
    private Long onlineDuration;
    @Min(value = 0, message = "积分")
    private Long integral;
    @Min(value = 0, message = "访问次数")
    private Long count;
    //创建人名称
    private String createName;
    //创建人登录名
    private String createBy;
    //创建时间
    private Date createDate;
    //更新人名称
    private String updateName;
    //更新人登录名
    private String updateBy;
    //更新时间
    private Date updateDate;
    //流程状态
    private String bpmStatus;
    //删除标识
    private Integer deleted;
}
